package model

import "time"

type SystemMessage struct {
	Id        uint      `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Title     string    `gorm:"column:title;type:varchar(255);comment:标题;not null;" json:"title"`     // 标题
	Content   string    `gorm:"column:content;type:varchar(255);comment:内容;not null;" json:"content"` // 内容
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
}

func (c *SystemMessage) TableName() string {
	return "system_message"
}
